Integrand size = 33, antiderivative size = 102 \[ \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\frac {2 \operatorname {EllipticPi}\left (\frac {2 d}{c+d},\arcsin \left (\frac {\sqrt {1-\sec (e+f x)}}{\sqrt {2}}\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sec (e+f x)}{a+b}} \tan (e+f x)}{(c+d) f \sqrt {a+b \sec (e+f x)} \sqrt {-\tan ^2(e+f x)}} \]
[Out]
Time = 0.16 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.030, Rules used = {4058} \[ \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\frac {2 \tan (e+f x) \sqrt {\frac {a+b \sec (e+f x)}{a+b}} \operatorname {EllipticPi}\left (\frac {2 d}{c+d},\arcsin \left (\frac {\sqrt {1-\sec (e+f x)}}{\sqrt {2}}\right ),\frac {2 b}{a+b}\right )}{f (c+d) \sqrt {-\tan ^2(e+f x)} \sqrt {a+b \sec (e+f x)}} \]
[In]
[Out]
Rule 4058
Rubi steps \begin{align*} \text {integral}& = \frac {2 \operatorname {EllipticPi}\left (\frac {2 d}{c+d},\arcsin \left (\frac {\sqrt {1-\sec (e+f x)}}{\sqrt {2}}\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sec (e+f x)}{a+b}} \tan (e+f x)}{(c+d) f \sqrt {a+b \sec (e+f x)} \sqrt {-\tan ^2(e+f x)}} \\ \end{align*}
Time = 8.83 (sec) , antiderivative size = 187, normalized size of antiderivative = 1.83 \[ \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\frac {2 \sqrt {\frac {b+a \cos (e+f x)}{(a+b) (1+\cos (e+f x))}} \left ((c+d) \operatorname {EllipticF}\left (\arcsin \left (\tan \left (\frac {1}{2} (e+f x)\right )\right ),\frac {a-b}{a+b}\right )-2 d \operatorname {EllipticPi}\left (\frac {c-d}{c+d},\arcsin \left (\tan \left (\frac {1}{2} (e+f x)\right )\right ),\frac {a-b}{a+b}\right )\right ) \sqrt {\cos (e+f x) \sec ^2\left (\frac {1}{2} (e+f x)\right )} \sqrt {\sec (e+f x)} \sqrt {1+\sec (e+f x)}}{(c-d) (c+d) f \sqrt {\sec ^2\left (\frac {1}{2} (e+f x)\right )} \sqrt {a+b \sec (e+f x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(202\) vs. \(2(97)=194\).
Time = 7.64 (sec) , antiderivative size = 203, normalized size of antiderivative = 1.99
method | result | size |
default | \(-\frac {2 \left (\cos \left (f x +e \right )+1\right ) \left (\operatorname {EllipticF}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right ), \sqrt {\frac {a -b}{a +b}}\right ) c +\operatorname {EllipticF}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right ), \sqrt {\frac {a -b}{a +b}}\right ) d -2 \operatorname {EllipticPi}\left (\cot \left (f x +e \right )-\csc \left (f x +e \right ), \frac {c -d}{c +d}, \sqrt {\frac {a -b}{a +b}}\right ) d \right ) \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (a +b \right ) \left (\cos \left (f x +e \right )+1\right )}}\, \sqrt {a +b \sec \left (f x +e \right )}}{f \left (c -d \right ) \left (c +d \right ) \left (b +a \cos \left (f x +e \right )\right )}\) | \(203\) |
[In]
[Out]
Timed out. \[ \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int \frac {\sec {\left (e + f x \right )}}{\sqrt {a + b \sec {\left (e + f x \right )}} \left (c + d \sec {\left (e + f x \right )}\right )}\, dx \]
[In]
[Out]
\[ \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int { \frac {\sec \left (f x + e\right )}{\sqrt {b \sec \left (f x + e\right ) + a} {\left (d \sec \left (f x + e\right ) + c\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int { \frac {\sec \left (f x + e\right )}{\sqrt {b \sec \left (f x + e\right ) + a} {\left (d \sec \left (f x + e\right ) + c\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int \frac {1}{\cos \left (e+f\,x\right )\,\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}\,\left (c+\frac {d}{\cos \left (e+f\,x\right )}\right )} \,d x \]
[In]
[Out]